import QtQuick 2.0

PathView {
    id: root
    interactive: true;
    pathItemCount: 3;
    preferredHighlightBegin: 0.5;
    preferredHighlightEnd: 0.5;
    highlightRangeMode: PathView.StrictlyEnforceRange;

    flickDeceleration: 500

    path: Path {
        startX: root.width / 2; startY: 0
        PathAttribute { name: "itemZ"; value: 0 }
        PathAttribute { name: "itemOpacity"; value: 0.5 }
        PathLine{ x: root.width / 2; y: root.height / 3 }
        PathAttribute { name: "itemZ"; value: 1 }
        PathAttribute { name: "itemOpacity"; value: 1.0 }
        PathLine{ x: root.width / 2; y: root.height * 2 / 3 }
        PathAttribute { name: "itemZ"; value: 0 }
        PathAttribute { name: "itemOpacity"; value: 0.5 }
        PathLine{ x: root.width / 2; y: root.height }
    }
}
